﻿using System;
using System.Linq;

namespace MinesweeperUtility
{
    public class Cell
    {
        private int value;
        private bool isVisited;
        private bool isMarked;
        private bool isSelected;

        public bool IsMine()
        {
            if (this.Value < 0)
            {
                return true;
            }
            return false;
        }
        public Cell()
        {
            this.value = 0;
            this.isVisited = false;
        }

        public Cell(int value, bool isVisited)
        {
            this.value = value;
            this.isVisited = isVisited;
        }

        public int Value
        {
            get { return this.value; }
            set { this.value = value; }
        }

        public bool IsVisited
        {
            get { return this.isVisited; }
            set { this.isVisited = value; }
        }

        public bool IsMarked
        {
            get { return this.isMarked; }
            set { this.isMarked = value; }
        }

        public bool IsSelected
        {

            get { return this.isSelected; }
            set { this.isSelected = value; }
        }
    }
}